const withPlugins = require('next-compose-plugins');
const sass = require('@zeit/next-sass');
const less = require('@zeit/next-less');
const css = require('@zeit/next-css');
if (typeof require !== 'undefined') {
    require.extensions['.css'] = file => {};
    require.extensions['.scss'] = file => {};
}
const nextConfig = {
    // useFileSystemPublicRoutes: false,
    distDir: 'build'
};
module.exports = withPlugins(
    [
        [
            sass,
            {
                cssModules: true,
                cssLoaderOptions: {
                    importLoaders: 1,
                    localIdentName: '[local]_[hash:base64:5]'
                }
            }
        ],
        [
            less,
            {
                cssModules: false
            }
        ],
        [css]
    ],
    nextConfig
);
